package com.metis.document.parse.dialog.entity;

import com.metis.document.parse.dialog.utils.AutoCleanFile;

/**
 * 解析成为json的结果包装类
 */
public class ParseToJsonResult {

    // 0 成功 其他值 异常
    private Integer code = -1;

    private String msg;

    private AutoCleanFile cleanFile;

    public ParseToJsonResult(){}

    public ParseToJsonResult(AutoCleanFile cleanFile){
        this(0, null, cleanFile);
    }

    public ParseToJsonResult(Integer code, String msg) {
        this(code,msg,null);
    }

    public ParseToJsonResult(Integer code, String msg, AutoCleanFile cleanFile) {
        this.code = code;
        this.msg = msg;
        this.cleanFile = cleanFile;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public AutoCleanFile getCleanFile() {
        return cleanFile;
    }

    public void setCleanFile(AutoCleanFile cleanFile) {
        this.cleanFile = cleanFile;
    }
}
